// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-06-18 17:06:48
// 生成路径: api/v1/app/app_news_category.go
// 生成人：gfast
// desc:文章分类相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package app

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/app/model"
)

// AppNewsCategorySearchReq 分页请求参数
type AppNewsCategorySearchReq struct {
	g.Meta `path:"/list" tags:"文章分类" method:"get" summary:"文章分类列表"`
	commonApi.Author
	model.AppNewsCategorySearchReq
}

// AppNewsCategorySearchRes 列表返回结果
type AppNewsCategorySearchRes struct {
	g.Meta `mime:"application/json"`
	*model.AppNewsCategorySearchRes
}

// AppNewsCategoryAddReq 添加操作请求参数
type AppNewsCategoryAddReq struct {
	g.Meta `path:"/add" tags:"文章分类" method:"post" summary:"文章分类添加"`
	commonApi.Author
	*model.AppNewsCategoryAddReq
}

// AppNewsCategoryAddRes 添加操作返回结果
type AppNewsCategoryAddRes struct {
	commonApi.EmptyRes
}

// AppNewsCategoryEditReq 修改操作请求参数
type AppNewsCategoryEditReq struct {
	g.Meta `path:"/edit" tags:"文章分类" method:"put" summary:"文章分类修改"`
	commonApi.Author
	*model.AppNewsCategoryEditReq
}

// AppNewsCategoryEditRes 修改操作返回结果
type AppNewsCategoryEditRes struct {
	commonApi.EmptyRes
}

// AppNewsCategoryGetReq 获取一条数据请求
type AppNewsCategoryGetReq struct {
	g.Meta `path:"/get" tags:"文章分类" method:"get" summary:"获取文章分类信息"`
	commonApi.Author
	Id uint `p:"id" v:"required#主键必须"` //通过主键获取
}

// AppNewsCategoryGetRes 获取一条数据结果
type AppNewsCategoryGetRes struct {
	g.Meta `mime:"application/json"`
	*model.AppNewsCategoryInfoRes
}

// AppNewsCategoryDeleteReq 删除数据请求
type AppNewsCategoryDeleteReq struct {
	g.Meta `path:"/delete" tags:"文章分类" method:"delete" summary:"删除文章分类"`
	commonApi.Author
	Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
}

// AppNewsCategoryDeleteRes 删除数据返回
type AppNewsCategoryDeleteRes struct {
	commonApi.EmptyRes
}
